|
rs485isolator3 2.2.0
|
API for configuring and manipulating RS485 Isolator 3 Click driver. More...
Topics | |
| RS485 Isolator 3 Device Settings | |
| Settings for registers of RS485 Isolator 3 Click driver. | |
| RS485 Isolator 3 MikroBUS Map | |
| MikroBUS pin mapping of RS485 Isolator 3 Click driver. | |
Functions | |
| void | rs485isolator3_cfg_setup (rs485isolator3_cfg_t *cfg) |
| RS485 Isolator 3 configuration object setup function. | |
| err_t | rs485isolator3_init (rs485isolator3_t *ctx, rs485isolator3_cfg_t *cfg) |
| RS485 Isolator 3 initialization function. | |
| void | rs485isolator3_default_cfg (rs485isolator3_t *ctx) |
| RS485 Isolator 3 default configuration function. | |
| err_t | rs485isolator3_generic_write (rs485isolator3_t *ctx, char *data_in, uint16_t len) |
| RS485 Isolator 3 data writing function. | |
| err_t | rs485isolator3_generic_read (rs485isolator3_t *ctx, char *data_out, uint16_t len) |
| RS485 Isolator 3 data reading function. | |
| void | rs485isolator3_enable_receiver_input (rs485isolator3_t *ctx) |
| RS485 Isolator 3 enable receiver input function. | |
| void | rs485isolator3_disable_receiver_input (rs485isolator3_t *ctx) |
| RS485 Isolator 3 disable receiver input function. | |
| void | rs485isolator3_enable_output (rs485isolator3_t *ctx) |
| RS485 Isolator 3 enable output function. | |
| void | rs485isolator3_disable_output (rs485isolator3_t *ctx) |
| RS485 Isolator 3 disable output function. | |
| void | rs485isolator3_inverted_inputs (rs485isolator3_t *ctx) |
| RS485 Isolator 3 invert output function. | |
| void | rs485isolator3_not_inverted_inputs (rs485isolator3_t *ctx) |
| RS485 Isolator 3 not invert output function. | |
| err_t | rs485isolator3_send_bit_by_bit (rs485isolator3_t *ctx, char *command) |
| RS485 Isolator 3 send data function. | |
API for configuring and manipulating RS485 Isolator 3 Click driver.
Any initialization code needed for MCU to function properly. Do not remove this line or clock might not be set correctly.
| void rs485isolator3_cfg_setup | ( | rs485isolator3_cfg_t * | cfg | ) |
RS485 Isolator 3 configuration object setup function.
This function initializes Click configuration structure to initial values.
| [out] | cfg | : Click configuration structure. See rs485isolator3_cfg_t object definition for detailed explanation. |
| void rs485isolator3_default_cfg | ( | rs485isolator3_t * | ctx | ) |
RS485 Isolator 3 default configuration function.
This function executes a default configuration of RS485 Isolator 3 Click board.
| [in] | ctx | : Click context object. See rs485isolator3_t object definition for detailed explanation. |
| void rs485isolator3_disable_output | ( | rs485isolator3_t * | ctx | ) |
RS485 Isolator 3 disable output function.
This function disable output.
| [in] | ctx | : Click context object. See rs485isolator3_t object definition for detailed explanation. |
| void rs485isolator3_disable_receiver_input | ( | rs485isolator3_t * | ctx | ) |
RS485 Isolator 3 disable receiver input function.
This function disables receiver input.
| [in] | ctx | : Click context object. See rs485isolator3_t object definition for detailed explanation. |
| void rs485isolator3_enable_output | ( | rs485isolator3_t * | ctx | ) |
RS485 Isolator 3 enable output function.
This function enables output.
| [in] | ctx | : Click context object. See rs485isolator3_t object definition for detailed explanation. |
| void rs485isolator3_enable_receiver_input | ( | rs485isolator3_t * | ctx | ) |
RS485 Isolator 3 enable receiver input function.
This function enables receiver input.
| [in] | ctx | : Click context object. See rs485isolator3_t object definition for detailed explanation. |
| err_t rs485isolator3_generic_read | ( | rs485isolator3_t * | ctx, |
| char * | data_out, | ||
| uint16_t | len ) |
RS485 Isolator 3 data reading function.
This function reads a desired number of data bytes by using UART serial interface.
| [in] | ctx | : Click context object. See rs485isolator3_t object definition for detailed explanation. |
| [out] | data_out | : Output read data. |
| [in] | len | : Number of bytes to be read. |
>0 - Number of data bytes read, <=0 - Error/Empty Ring buffer. See #err_t definition for detailed explanation. | err_t rs485isolator3_generic_write | ( | rs485isolator3_t * | ctx, |
| char * | data_in, | ||
| uint16_t | len ) |
RS485 Isolator 3 data writing function.
This function writes a desired number of data bytes by using UART serial interface.
| [in] | ctx | : Click context object. See rs485isolator3_t object definition for detailed explanation. |
| [in] | data_in | : Data buffer for sending. |
| [in] | len | : Number of bytes for sending. |
>=0 - Success, <0 - Error. See #err_t definition for detailed explanation. | err_t rs485isolator3_init | ( | rs485isolator3_t * | ctx, |
| rs485isolator3_cfg_t * | cfg ) |
RS485 Isolator 3 initialization function.
This function initializes all necessary pins and peripherals used for this Click board.
| [out] | ctx | : Click context object. See rs485isolator3_t object definition for detailed explanation. |
| [in] | cfg | : Click configuration structure. See rs485isolator3_cfg_t object definition for detailed explanation. |
0 - Success, -1 - Error. See #err_t definition for detailed explanation. | void rs485isolator3_inverted_inputs | ( | rs485isolator3_t * | ctx | ) |
RS485 Isolator 3 invert output function.
This function is used to invert the A and B receiver inputs to correct for reversed cable installation.
| [in] | ctx | : Click context object. See rs485isolator3_t object definition for detailed explanation. |
| void rs485isolator3_not_inverted_inputs | ( | rs485isolator3_t * | ctx | ) |
RS485 Isolator 3 not invert output function.
This function is used if the cable invert function is not used.
| [in] | ctx | : Click context object. See rs485isolator3_t object definition for detailed explanation. |
| err_t rs485isolator3_send_bit_by_bit | ( | rs485isolator3_t * | ctx, |
| char * | command ) |
RS485 Isolator 3 send data function.
This function is used to send data bit by bit with 100 mS delay.
| [in] | ctx | : Click context object. See rs485isolator3_t object definition for detailed explanation. |
| [in] | command | : Data buffer for sending. |
0 - Success, -1 - Error. See #err_t definition for detailed explanation.